package net.jlnx.Uebung1.data;

public class RWDreieck extends FigMZLA {

	public RWDreieck(int posX, int posY, int a, int b) {
		super(posX, posY, a, b);
		super.figurenTyp = "RWDreieck";
	}

	public double berechneFlaeche() {
		double flaeche = (super.A * super.B) / 2;
		return flaeche;
	}

}